package com.smfx.yxt.model;

import java.io.Serializable;
import java.util.Date;

import com.smfx.yxt.utils.DateUtil;

public class TeacherWorkSign implements Serializable {
    private Integer id;

    private Integer teacherId;

    private Date signTime;

    private Integer signType;

    private String againSign;

    private String remark;
    
    private String teacherName;
    
    private String signTopic;
    
    private String signDate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Integer getSignType() {
        return signType;
    }

    public void setSignType(Integer signType) {
        this.signType = signType;
    }

    public String getAgainSign() {
		return againSign;
	}

	public void setAgainSign(String againSign) {
		this.againSign = againSign;
	}

	public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getSignTopic() {
		return signTopic;
	}

	public void setSignTopic(String signTopic) {
		this.signTopic = signTopic;
	}

	public String getSignDate() {
		return signDate;
	}

	public void setSignDate(String signDate) {
		this.signDate = signDate;
	}
	
	public String getSignTimeText() {
		if(this.signTime != null) {
			return DateUtil.dateToStr(this.signTime, DateUtil.DEFAULT_DATE_FORMAT);
		}
		return "";
	}
	
	public String getSignStatus() {
		if(this.signTime != null) {
			return "已签";
		}
		return "未签";
	}
    
}